<template>
  <div class="title-wrap">
    <div class="title">
      {{ text }}
      <span class="tips">{{ tips }}</span>
    </div>
    <div class="btn">
      <slot></slot>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  props: ["text", "tips"],
};
</script>

<style lang="scss" scoped>
.title-wrap {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}
.title {
  flex: 1;
  color: rgba(22, 119, 255, 1);
  font-size: 16px;
  font-family: PingFangSC-Semibold;
  padding-left: 10px;
  position: relative;

  &::after {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 16px;
    background:rgba(22, 119, 255, 1);
  }
}
.tips {
  vertical-align: top;
  color: rgba(0, 0, 0, 0.45);
  font-size: 16px;
  font-family: PingFangSC-Regular;
  margin-left: 10px;
}
</style>